package day04.homework;

public class textDemo07 {
    public static void main(String[] args) {
        int aaa=0;
        for (int year = 1900;year<2023;year++){
            if((year%4==0 && year%100!=0) || year%400==0){
                System.out.print(year+" ");
                aaa++;
                if (aaa%10==0){
                    System.out.println();
                }
            }
        }
    }
}
